package com.zhuhjay.template;

import lombok.Data;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author ZhuHJay
 * @date 2023/4/24 20:36
 */
@Data
public class Config {

    private String author;
    private String date;

    public static Config of(String author) {
        String format = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm").format(LocalDateTime.now());
        Config config = new Config();
        config.setAuthor(author);
        config.setDate(format);
        return config;
    }

}
